package functions 
{	import functions.FunctionNode;	/**
	 * @author admin
	 */
	public class GreaterThanFunctionNode extends FunctionNode 
	{
		public function GreaterThanFunctionNode()
		{
			funcname = "gt";	
			functiontype = FUNCTION;
		}
		
		override public function getValue( args : XML, scope : Object ) : XML
		{
			
			var returnXML:XML;
			
			var argone:Number = Evaluator.getLiteral(args.children()[ 0 ]);
			var argtwo:Number = Evaluator.getLiteral(args.children()[ 1 ]);
			if( argone  > argtwo )
			{
				returnXML =  <t/>;
			}
			else
			{
				returnXML = <list/>;
			}
			
			return returnXML;
		}	}}